package br.cin.ufpe.corba.namingservice;

import java.io.IOException;

import br.cin.ufpe.corba.ORB;

public class NamingService {

	public static void main(String[] args) {		
		try {
			ORB orb = ORB.init(1133, "localhost", 1133);
			orb.add("NamingContext", new NamingContextImpl(orb));			
			System.out.println("Naming service running(1133)...");
			System.in.read();
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
